package com.show.test;

import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelReader;
import com.alibaba.excel.read.metadata.ReadSheet;
import com.show.config.DemoDataListener;
import com.show.pojo.Trainee;
import com.sun.org.apache.xml.internal.security.Init;

import java.io.File;

public class test {
    public static void main(String[] args) {
        String fileName = "C:\\Users\\绛河\\Desktop\\大屏数据.xlsx";
        ExcelReader excelReader = EasyExcel.read(fileName, Trainee.class, new DemoDataListener()).build();
        ReadSheet readSheet = EasyExcel.readSheet(0).build();
        excelReader.read(readSheet);
        excelReader.finish();
    }
}
